package com.mop.sg2.global.base;

public enum ScrennSize {

	S_480_800(480, 800, "480_800"), S_320_480(320, 480, "320_480"), S_240_320(
			240, 320, "240_320"), S_600_1024(600, 1024, "600_1024");

	int width;
	int hight;
	String scr;

	private ScrennSize(int width, int hight, String scr) {
		this.width = width;
		this.hight = hight;
		this.scr = scr;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHight() {
		return hight;
	}

	public void setHight(int hight) {
		this.hight = hight;
	}

	public String getScr() {
		return scr;
	}

	public void setScr(String scr) {
		this.scr = scr;
	}

	public static ScrennSize getIntance(int width, int hight) {
		if (width == 320 && hight == 480) {
			return S_320_480;
		} else if (width == 600 && hight == 1024) {
			return S_600_1024;
		} else if (width == 240 && hight == 320) {
			return S_240_320;
		} else {
			return S_480_800;
		}
	}
}
